﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Auditing;
using Microsoft.AspNetCore.Http;
using SportsPlatform.Sessions.Dto;

namespace SportsPlatform.Sessions
{
    public class SessionAppService : SportsPlatformAppServiceBase, ISessionAppService
    {
        public SessionAppService(IHttpContextAccessor context) : base(context)
        {
        }

        [DisableAuditing]
        public async Task<GetCurrentLoginInformationsOutput> GetCurrentLoginInformations()
        {
            var output = new GetCurrentLoginInformationsOutput
            {
                Application = new ApplicationInfoDto
                {
                    Version = AppVersionHelper.Version,
                    ReleaseDate = AppVersionHelper.ReleaseDate,
                    Features = new Dictionary<string, bool>()
                }
            };

      

            return output;
        }
    }
}
